<form action = "" method = "post" class = "search">
	<input type="text" id="dsfm_keyword" name="dsfm_keyword" value = "{$dsfm_keyword}" class = "input"/>
	<input type = "submit" value = "search">
</form>
<script>
$(function(){

	if($("#dsfm_keyword").val() == ""){
		$("#dsfm_keyword").val("{$dsfm_search_text}");
		$("#dsfm_keyword").css("color","#999");
	}

	$("#dsfm_keyword").focus(function(){
		if($("#dsfm_keyword").val() == "{$dsfm_search_text}"){
			$("#dsfm_keyword").val("");
			$("#dsfm_keyword").css("color","#000");
		}
	});

	$("#dsfm_keyword").blur(function(){
		if($("#dsfm_keyword").val() == ""){
			$("#dsfm_keyword").val("{$dsfm_search_text}");
			$("#dsfm_keyword").css("color","#999");
		}
	});
});
</script>